import service from "./request";


export function user_login(params = {}) {
    return service.post('/user/login', params);
}

// 轮播图
export function index_banner(params = {}) {
    return service.get('/index/banner', { params });
}

// /api/index/nav
// 导航
export function index_nav(params = {}) {
    return service.get('/index/nav', { params });
}

// 推荐列表

export function index_goodlist(params = {}) {
    return service.get('/index/goodlist', { params });
}

// 一级分类

// /api/category/list
export function category_list(params = {}) {
    return service.get('/category/list', { params });
}

// /api/category/subcate
// 二三级分类
export function category_subcate(params = {}) {
    return service.get('/category/subcate', { params });
}

// 注册
export function user_register(params = {}) {
    return service.post('/user/register', params);
}